package cn.zhangtiancinb.simple_demo.exception_switch.server;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 应用启动入口类
 *
 * @author 张天赐
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(Application.class);
        application.addListeners(new ApplicationPidFileWriter());
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);
    }
}
